package com.cn.shchuangge.uitls;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by 赵航 on 2017/6/15.
 */

//输入框验证工具类
public class NumberCheck {

    public static boolean isMobileNO(String mobiles) {
        Pattern p = Pattern
                .compile("^((13[0-9])|(15[^4,//D])|(18[0,5-9]))//d{8}$");
        Matcher m = p.matcher(mobiles);

        return m.matches();
    }
    public static boolean isPassWorld(String  nuber){
        Pattern p = Pattern
                .compile("/^[a-zA-Z0-9]{6,10}$/");
        Matcher m = p.matcher(nuber);
        return m.matches();
    }


}
